package cn.rongdao.jrkabao.model.message;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.Map;

import cn.rongdao.jrkabao.bean.message.ValidateIDCardPhotoBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/5
 */

public class IdCardPhotoModel extends BaseSuDaiModel {

    public static IdCardPhotoModel getInstance() {
        return getPresent(IdCardPhotoModel.class);
    }

    public void execute(Map<String, String> map, Observer<ValidateIDCardPhotoBean> observer) {
        addParamStrings(map);
        Observable<ValidateIDCardPhotoBean> observable = mServletApi.getIdCardPhoto(mParams).map(new HttpFunction<ValidateIDCardPhotoBean>());
        toSubscribe(observable, observer);
    }
}